/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class HulaHoop {
    static categoryCode = '010070004';

    static categoryName = '呼啦圈';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return HulaHoop.categoryCode;
    }

    get categoryName() {
        return HulaHoop.categoryName;
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pdNCa8yC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRealtimeCount(params) {
        return command({
            method: 'getRealtimeCount',
            methodId: 'p0croExZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRealtimeTime(params) {
        return command({
            method: 'getRealtimeTime',
            methodId: 'pz93zIRd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'ptRSF2JU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'phEqjJsw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetCount(params) {
        return command({
            method: 'getTargetCount',
            methodId: 'pkpD9znr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTime(params) {
        return command({
            method: 'getTargetTime',
            methodId: 'p3deKcXA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setContinue(params) {
        return command({
            method: 'setContinue',
            methodId: 'pZgunZIK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFinish(params) {
        return command({
            method: 'setFinish',
            methodId: 'pGoxILkl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'p1vZRSV5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPause(params) {
        return command({
            method: 'setPause',
            methodId: 'pUPQldlM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'ppAXPrfn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3fAv9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetCount(params) {
        return command({
            method: 'setTargetCount',
            methodId: 'pgh0HT6P',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTime(params) {
        return command({
            method: 'setTargetTime',
            methodId: 'pDrhTNAm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default HulaHoop;
